package com.example.enumdemo.method;

/**
 * Created by taoli on 2018/8/5.
 */
public enum OverrideMethodUserStatus {
    ENABLE("可用"),
    DISABLE("禁用");

    private final String descr;

    OverrideMethodUserStatus(String descr) {
        this.descr = descr;
    }

    @Override
    public String toString(){
        return this.descr;
    }

    public static void main(String... args){
        for (OverrideMethodUserStatus userStatus : OverrideMethodUserStatus.values()){
            System.out.println(userStatus.name() + ":" + userStatus.toString());
        }
    }
}
